package com.jic.purchase.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.purchase.model.entity.SupplierRangeProduct;
import com.jic.purchase.model.vo.request.SupplierRangeProductRequest;
import com.jic.purchase.model.vo.response.SupplierRangeProductResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 供应商范围商品
 * @author : 
 * @email : 
 * @since : 2020-09-20 06:58:04
 * @version : v1.0.0
 */
@Mapper
public interface  SupplierRangeProductMapper {

    long insert(SupplierRangeProduct supplierRangeProduct);

    long delete(Long id);

    long update(SupplierRangeProduct supplierRangeProduct);

    SupplierRangeProduct queryByPrimaryKey(Long id);

    List<SupplierRangeProduct> query(SupplierRangeProduct supplierRangeProduct);

    List<SupplierRangeProduct> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("supplierRangeProduct") SupplierRangeProduct supplierRangeProduct);

    long queryPageCount(SupplierRangeProduct supplierRangeProduct);

    List<SupplierRangeProductResponse> querySupplierRangeProductList(SupplierRangeProductRequest supplierRangeProductRequest);

    int batchInsert(@Param("items")List<SupplierRangeProduct> items);
}